gtktreeviewaccessible: do not trigger an assertion
authorAlban Crequy <alban.crequy@collabora.co.uk>
Thu, 22 Sep 2011 20:39:06 +0000 (16:39 -0400)
committerAlban Crequy <alban.crequy@collabora.co.uk>
Fri, 23 Sep 2011 16:04:39 +0000 (12:04 -0400)
commit6ab7b87a02b5eb1af2703dc3f151442b2cf4ce9a
tree6e86f3f6f1a3a44f71be9c25c39bd2367649a0ad
parenta0fc947f895a33479ea3d7e7da88faaac8998ecb
gtktreeviewaccessible: do not trigger an assertion

The following assertion was triggered in model_row_inserted() because
iterate_thru_children() modifies the parameter tree_model before passing it to
traverse_cells().

Gtk-CRITICAL **: gtk_tree_path_compare: assertion `b->depth > 0' failed

The stack with the bug was:

  #0  gtk_tree_path_compare at gtktreemodel.c
  #1  traverse_cells at gtktreeviewaccessible.c
  #2  model_row_inserted at gtktreeviewaccessible.c

This patch calls iterate_thru_children() with a copy of the path so that the
original is not modified.
gtk/a11y/gtktreeviewaccessible.c